package com.augn.controller;

import com.augn.entity.PostEvaluateFrom;
import com.augn.entity.Result;
import com.augn.service.IPostEvaluateFromService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author augn
 * @since 2022-09-22
 */
@RestController
@RequestMapping("/postEvaluateFrom")
public class PostEvaluateFromController {

    @Autowired
    private IPostEvaluateFromService service;

    @PostMapping("/insertOne")
    public Result<?> insertOnePostEvaluateFrom(@RequestBody PostEvaluateFrom postEvaluateFrom){
        return service.insertOnePostEvaluateFrom(postEvaluateFrom);
    }

    @DeleteMapping("/deleteOne/{id}")
    public Result<?> deleteOnePostEvaluateFrom(@PathVariable Integer id){
        return service.deleteOnePostEvaluateFrom(id);
    }

    @GetMapping("/getPart/{id}")
    public Result<?> getPartPostEvaluateFrom(@PathVariable Integer id){
        return service.getPartPostEvaluateFrom(id);
    }



}
